package chap09;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class UDP_Sever {
    public static void main(String [] args) throws IOException {
        DatagramSocket socket=new DatagramSocket();
        String str="hello world";
        DatagramPacket pack=new DatagramPacket(str.getBytes(),str.length(), InetAddress.getLocalHost(),3000);
        socket.send(pack);
    }
}
